﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 删除图片参数类
    /// </summary>
    public class DeleteImgParam
    {
        ///// <summary>
        ///// 图片地址
        ///// </summary>
        //[JsonProperty("img_url"), JsonPropertyName("img_url")]
        //[Required(ErrorMessage = nameof(ErrorResultEnum.ImgUrlIsNull))]
        //public string ImgUrl { get; set; }

        /// <summary>
        /// 删除口令
        /// </summary>
        [Required(ErrorMessage = nameof(ErrorResultEnum.InvalidToken))]
        [JsonProperty("del_token"), JsonPropertyName("del_token")]
        public string DelToken { get; set; }
    }
}
